﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class quit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
       if( Session["usr"]==null)
        {
            Response.Write("<script>alert('您还没有登录);location.href='" + Request.UrlReferrer.ToString() + "';</script>");
        }
       else
        {   if(func.isadmir(Session["usr"].ToString()))
            {
                lbl.Text = "管理员" + Session["usr"] + ",您已经退出";
                Session["usr"] = null;
                Session["code"] = null;
            }
            else
            {
                lbl.Text = "用户" + Session["usr"] + ",您已经退出";
                Session["usr"] = null;
                Session["code"] = null;
            }
          
        }
      
    }
}